<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: DrClassMap.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">DrClassMap.h</div></div>
</div><!--header-->
<div class="contents">
<a href="DrClassMap_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;<a class="code" href="exports_8h.html">drogon/exports.h</a>&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;trantor/utils/Logger.h&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#include &lt;thread&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#ifndef _MSC_VER</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#include &lt;cxxabi.h&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedrogon.html">drogon</a></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>{</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="keyword">class </span>DrObjectBase;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a8591c07ca1646de2c0867e70e8fb700d">   35</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a8591c07ca1646de2c0867e70e8fb700d">DrAllocFunc</a> = std::function&lt;<a class="code hl_class" href="classdrogon_1_1DrObjectBase.html">DrObjectBase</a> *()&gt;;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a80e7a25b7ecc56de8ecb81c884d64dca">   36</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacedrogon.html#a80e7a25b7ecc56de8ecb81c884d64dca">DrSharedAllocFunc</a> = std::function&lt;std::shared_ptr&lt;DrObjectBase&gt;()&gt;;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span> </div>
<div class="foldopen" id="foldopen00041" data-start="{" data-end="};">
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html">   41</a></span><span class="keyword">class </span><a class="code hl_define" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a> <a class="code hl_class" href="classdrogon_1_1DrClassMap.html">DrClassMap</a></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>{</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>  <span class="keyword">public</span>:</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#a83dfe0e7bbf366d42bafa4950dc04d1a">   50</a></span>    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#a83dfe0e7bbf366d42bafa4950dc04d1a">registerClass</a>(<span class="keyword">const</span> std::string &amp;className,</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>                              <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a8591c07ca1646de2c0867e70e8fb700d">DrAllocFunc</a> &amp;func,</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>                              <span class="keyword">const</span> <a class="code hl_typedef" href="namespacedrogon.html#a80e7a25b7ecc56de8ecb81c884d64dca">DrSharedAllocFunc</a> &amp;sharedFunc = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#a99f0c71a19619860d20def428783e471">   60</a></span>    <span class="keyword">static</span> <a class="code hl_class" href="classdrogon_1_1DrObjectBase.html">DrObjectBase</a> *<a class="code hl_function" href="classdrogon_1_1DrClassMap.html#a99f0c71a19619860d20def428783e471">newObject</a>(<span class="keyword">const</span> std::string &amp;className);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#ae93db31b02323bea37a12c1bc0dd226b">   65</a></span>    <span class="keyword">static</span> std::shared_ptr&lt;DrObjectBase&gt; <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#ae93db31b02323bea37a12c1bc0dd226b">newSharedObject</a>(</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>        <span class="keyword">const</span> std::string &amp;className);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#afc3fce9c3f8ae2317205b477f25743da">   75</a></span>    <span class="keyword">static</span> <span class="keyword">const</span> std::shared_ptr&lt;DrObjectBase&gt; &amp;<a class="code hl_function" href="classdrogon_1_1DrClassMap.html#afc3fce9c3f8ae2317205b477f25743da">getSingleInstance</a>(</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>        <span class="keyword">const</span> std::string &amp;className);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00086" data-start="{" data-end="}">
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#aa98def6da23e435f65e19ab39ef3ffa7">   86</a></span>    <span class="keyword">static</span> std::shared_ptr&lt;T&gt; <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#aa98def6da23e435f65e19ab39ef3ffa7">getSingleInstance</a>()</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    {</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>        <span class="keyword">static_assert</span>(std::is_base_of&lt;DrObjectBase, T&gt;::value,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>                      <span class="stringliteral">&quot;T must be a sub-class of DrObjectBase&quot;</span>);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>        <span class="keyword">static</span> <span class="keyword">auto</span> <span class="keyword">const</span> singleton =</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>            std::dynamic_pointer_cast&lt;T&gt;(getSingleInstance(T::classTypeName()));</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>        assert(singleton);</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>        <span class="keywordflow">return</span> singleton;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    }</div>
</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#ae1449d759f7d17aaff507500754bac32">  101</a></span>    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#ae1449d759f7d17aaff507500754bac32">setSingleInstance</a>(<span class="keyword">const</span> std::shared_ptr&lt;DrObjectBase&gt; &amp;ins);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#aaee02d2f02c590f77be0ee7054da4a19">  108</a></span>    <span class="keyword">static</span> std::vector&lt;std::string&gt; <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#aaee02d2f02c590f77be0ee7054da4a19">getAllClassName</a>();</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="foldopen" id="foldopen00116" data-start="{" data-end="}">
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#a3479980ccf7edf6b886a02a29af181e4">  116</a></span>    <span class="keyword">static</span> std::string <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#a3479980ccf7edf6b886a02a29af181e4">demangle</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *mangled_name)</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    {</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span><span class="preprocessor">#ifndef _MSC_VER</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>        std::size_t len = 0;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>        <span class="keywordtype">int</span> status = 0;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>        std::unique_ptr&lt;char, <span class="keyword">decltype</span>(&amp;std::free)&gt; ptr(</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>            __cxxabiv1::__cxa_demangle(mangled_name, <span class="keyword">nullptr</span>, &amp;len, &amp;status),</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>            &amp;std::free);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>        <span class="keywordflow">if</span> (status == 0)</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>        {</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>            <span class="keywordflow">return</span> std::string(ptr.get());</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>        }</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        LOG_ERROR &lt;&lt; <span class="stringliteral">&quot;Demangle error!&quot;</span>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>        <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>        <span class="keyword">auto</span> pos = strstr(mangled_name, <span class="stringliteral">&quot; &quot;</span>);</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        <span class="keywordflow">if</span> (pos == <span class="keyword">nullptr</span>)</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>            <span class="keywordflow">return</span> std::string{mangled_name};</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        <span class="keywordflow">else</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>            <span class="keywordflow">return</span> std::string{pos + 1};</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>    }</div>
</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>    <span class="keyword">static</span> std::unordered_map&lt;std::string,</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>                              std::pair&lt;DrAllocFunc, DrSharedAllocFunc&gt;&gt; &amp;</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrClassMap.html#a06907bc5d173d7b2f81d6072309a4399">  142</a></span>    <a class="code hl_function" href="classdrogon_1_1DrClassMap.html#a06907bc5d173d7b2f81d6072309a4399">getMap</a>();</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>};</div>
</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>}  <span class="comment">// namespace drogon</span></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html">drogon::DrClassMap</a></div><div class="ttdoc">A map class which can create DrObjects from names.</div><div class="ttdef"><b>Definition</b> DrClassMap.h:42</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_a06907bc5d173d7b2f81d6072309a4399"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#a06907bc5d173d7b2f81d6072309a4399">drogon::DrClassMap::getMap</a></div><div class="ttdeci">static std::unordered_map&lt; std::string, std::pair&lt; DrAllocFunc, DrSharedAllocFunc &gt; &gt; &amp; getMap()</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_a3479980ccf7edf6b886a02a29af181e4"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#a3479980ccf7edf6b886a02a29af181e4">drogon::DrClassMap::demangle</a></div><div class="ttdeci">static std::string demangle(const char *mangled_name)</div><div class="ttdoc">demangle the type name which is returned by typeid(T).name().</div><div class="ttdef"><b>Definition</b> DrClassMap.h:116</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_a83dfe0e7bbf366d42bafa4950dc04d1a"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#a83dfe0e7bbf366d42bafa4950dc04d1a">drogon::DrClassMap::registerClass</a></div><div class="ttdeci">static void registerClass(const std::string &amp;className, const DrAllocFunc &amp;func, const DrSharedAllocFunc &amp;sharedFunc=nullptr)</div><div class="ttdoc">Register a class into the map</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_a99f0c71a19619860d20def428783e471"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#a99f0c71a19619860d20def428783e471">drogon::DrClassMap::newObject</a></div><div class="ttdeci">static DrObjectBase * newObject(const std::string &amp;className)</div><div class="ttdoc">Create a new instance of the class named by className</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_aa98def6da23e435f65e19ab39ef3ffa7"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#aa98def6da23e435f65e19ab39ef3ffa7">drogon::DrClassMap::getSingleInstance</a></div><div class="ttdeci">static std::shared_ptr&lt; T &gt; getSingleInstance()</div><div class="ttdoc">Get the singleton T type object</div><div class="ttdef"><b>Definition</b> DrClassMap.h:86</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_aaee02d2f02c590f77be0ee7054da4a19"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#aaee02d2f02c590f77be0ee7054da4a19">drogon::DrClassMap::getAllClassName</a></div><div class="ttdeci">static std::vector&lt; std::string &gt; getAllClassName()</div><div class="ttdoc">Get all names of classes registered in the map.</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_ae1449d759f7d17aaff507500754bac32"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#ae1449d759f7d17aaff507500754bac32">drogon::DrClassMap::setSingleInstance</a></div><div class="ttdeci">static void setSingleInstance(const std::shared_ptr&lt; DrObjectBase &gt; &amp;ins)</div><div class="ttdoc">Set a singleton object into the map.</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_ae93db31b02323bea37a12c1bc0dd226b"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#ae93db31b02323bea37a12c1bc0dd226b">drogon::DrClassMap::newSharedObject</a></div><div class="ttdeci">static std::shared_ptr&lt; DrObjectBase &gt; newSharedObject(const std::string &amp;className)</div><div class="ttdoc">Get the shared_ptr instance of the class named by className</div></div>
<div class="ttc" id="aclassdrogon_1_1DrClassMap_html_afc3fce9c3f8ae2317205b477f25743da"><div class="ttname"><a href="classdrogon_1_1DrClassMap.html#afc3fce9c3f8ae2317205b477f25743da">drogon::DrClassMap::getSingleInstance</a></div><div class="ttdeci">static const std::shared_ptr&lt; DrObjectBase &gt; &amp; getSingleInstance(const std::string &amp;className)</div><div class="ttdoc">Get the singleton object of the class named by className</div></div>
<div class="ttc" id="aclassdrogon_1_1DrObjectBase_html"><div class="ttname"><a href="classdrogon_1_1DrObjectBase.html">drogon::DrObjectBase</a></div><div class="ttdoc">The base class for all drogon reflection classes.</div><div class="ttdef"><b>Definition</b> DrObject.h:34</div></div>
<div class="ttc" id="aexports_8h_html"><div class="ttname"><a href="exports_8h.html">exports.h</a></div></div>
<div class="ttc" id="aexports_8h_html_a00d0a001c2dd03906272e00b0598182e"><div class="ttname"><a href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a></div><div class="ttdeci">#define DROGON_EXPORT</div><div class="ttdef"><b>Definition</b> exports.h:15</div></div>
<div class="ttc" id="anamespacedrogon_html"><div class="ttname"><a href="namespacedrogon.html">drogon</a></div><div class="ttdoc">Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...</div><div class="ttdef"><b>Definition</b> Attribute.h:23</div></div>
<div class="ttc" id="anamespacedrogon_html_a80e7a25b7ecc56de8ecb81c884d64dca"><div class="ttname"><a href="namespacedrogon.html#a80e7a25b7ecc56de8ecb81c884d64dca">drogon::DrSharedAllocFunc</a></div><div class="ttdeci">std::function&lt; std::shared_ptr&lt; DrObjectBase &gt;()&gt; DrSharedAllocFunc</div><div class="ttdef"><b>Definition</b> DrClassMap.h:36</div></div>
<div class="ttc" id="anamespacedrogon_html_a8591c07ca1646de2c0867e70e8fb700d"><div class="ttname"><a href="namespacedrogon.html#a8591c07ca1646de2c0867e70e8fb700d">drogon::DrAllocFunc</a></div><div class="ttdeci">std::function&lt; DrObjectBase *()&gt; DrAllocFunc</div><div class="ttdef"><b>Definition</b> DrClassMap.h:35</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
